package thread.threaddemo;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/18/21:11
 * @Description:
 */
public class ThreadSynchronized5 {
    public static void main(String[] args) {
        synchronized (ThreadSynchronized5.class){
            for (int i = 0; i < 10; i++) {
                System.out.println(i);
            }
        }
    }
}
